

{extend name="layout"}
{block name="body"}
    
    <section class="wld-content">
        <div class="page_title">服务明细</div>
        <div class="page_title_obj">
            <div class="title-seach">
            	<input type="hidden" name="type" id="type" value="{$Think.get.type}" />
                <input type="text" name="search" value="{$Think.get.search}"  lay-verify="required" placeholder="搜索" autocomplete="off" class="wld-input-bg">
                <i class="iconfont iconfangdajing"></i>
            </div>
        </div>
        <div class="con_box layui-form">
			<div class="con_tag">
				<a href="{:url('index/payment/index')}" {if empty($Think.get.type) ||  $Think.get.type eq 0} class="on" {/if}>全部</a>
				<a href="{:url('index/payment/index')}?type=1" {if $Think.get.type eq 1} class="on" {/if}>已使用</a>
				<a href="{:url('index/payment/index')}?type=2" {if $Think.get.type eq 2} class="on" {/if}>已退回</a>
				<a href="{:url('index/payment/index')}?type=3" {if $Think.get.type eq 3} class="on" {/if}>充值</a>
                <div class="tag_right">                                   
					<span class="tag_right_exp" data-export-table data-export-url='{:url('index/payment/export')}'>导出所选项</span>
                </div>
			</div>
			<div class="con_table">
				<table  class="layui-table table-all" lay-skin="nob" data-export-name="table">
					{notempty name='list'}
                    <colgroup>
                        <col width="80">
                        <col width="244">
                        <col width="84">
						<col width="96">
						<col width="482">
						<col width="166">
                        
					  </colgroup>
					  <thead>
						<tr>
                            <th><input type="checkbox" name="" lay-filter="allChoose" title="" lay-skin="primary"></th>
                            <th>账单编号</th>
						    <th>点数</th>
							<th>类型</th>
							<th>服务说明</th>
                            <th>创建日期</th>
                         
						</tr> 
					  </thead>
					  {/notempty}
					  <tbody>
					  	{foreach $list as $key=>$vo}
						<tr>
                          <td><input type="checkbox" name="" lay-filter="tdChoose" value="{$vo.id|default='0'}" title="" lay-skin="primary"></td>
                          <td>{$vo.code|default=''}</td>
						  <td>{$vo.point|default=''}</td>
						  <td>
						  	{if $vo.type eq 1}<span class="color-green">充值</span>
	                        {elseif $vo.type eq 2}<span class="color-red">已使用</span>
	                        {elseif $vo.type eq 3}<span class="color-green">已退回</span>
	                        {/if}
						  </td>
                          <td>{$vo.desc|default=''}</td>
                        
						  <td>{$vo.create_at|default=''}</td>
                        </tr> 
                       {/foreach} 
                      </tbody>
                     
                </table>
                {empty name='list'}
            <div class="con_blank">
                <img src="__ROOT__/static/index/img/con_blank_img.png">
                <p class="con_blank_title">暂无数据</p>
            </div>
            {else}{$list|raw|default=''}{/empty} 
            </div>
		</div>
    </section>
{/block}


